<?php
/**
 * @Entity
 * @Table(name="topping")
 */

class Topping {



	/**
	 * @Id
	 * @Column(name="name", type="string", length=50, nullable=false)
	 */
	private $name;

	/**
	 * @Column(name="category", type="string", length=50, nullable=false)
	 */
	private $category;

	function Topping($topping){
		$this->setName($topping["name"]);
		$this->setCategory($topping["category"]);
	}

	public function getName() 
	{
		return $this->name;
	} 

	public function setName($name) 
	{
		$this->name = $name;
	} 

	public function getCategory() 
	{
		return $this->category;
	} 

	public function setCategory($category) 
	{
		$this->category = $category;
	} 

	public static function dbGetToppings($where){
		return dbGet("Topping", "topping", $where);
	}
}
?>